import { createRouter, createWebHistory } from 'vue-router'
import HomeMain from '@/views/home/homeMain.vue'
import IndexMain from '@/views/Index/IndexMain.vue'
import LoginPage from '@/views/Login/loginMain.vue'
const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: '/',
            name: 'index',
            component: HomeMain,
            redirect: '/home',
            children: [
                {
                    path: '/home',
                    name: 'home',
                    component: IndexMain,
                },
            ]
        },
        {
            path: '/login',
            name: 'login',
            component: LoginPage,
        },
    ],
})

export default router
